package com.example.blog.module.service;

import com.example.blog.module.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.module.entity.VO.PageParam;
import com.example.blog.module.entity.VO.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zjx
 * @since 2022-12-27
 */
public interface PermissionService extends IService<Permission> {
    Result listPermission(PageParam pageParam);
    Result add(Permission permission);
    Result update(Permission permission);
    Result delete(Long id);
    List<Permission> findPermissionsByAdminId(Long adminId);
}
